home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
dev
/
amos
/
moreusel.lha
/
Gearwheel1.AMOS
/
Gearwheel1.amosSourceCode
Wrap
AMOS Source Code
|
1997-04-15
|
1KB
|
52 lines
Screen Open 0,320,256,8,0
Curs Off : Flash Off : Paper 0 : Pen 1 : Cls 0
Palette $808,$8F8,$F88,$FF8,$404,$484,$844,$884
Double Buffer
Autoback 0
W=0
WX=0 : WY=0 : WZ=0 : MT=0
Do
Extension_8_121C 0,0
Add W,6
Add WX,3
Add WY,6
Add WZ,9
Extension_8_1122 0,0,300
Extension_8_1138 WX,WY,WZ
Extension_8_121C 0,1
Extension_8_1152
Extension_8_121C 0,2
D=0 : RX1=0
For A=0 To 1023 Step 16
If D<2
X2= Extension_8_1114(A+W,80)
Y2= Extension_8_1106(A+W,80)
Else
X2= Extension_8_1114(A+W,96)
Y2= Extension_8_1106(A+W,96)
End If
RX2= Extension_8_1168(X2,Y2,10)+160
RY2= Extension_8_1184(X2,Y2,10)+128
RX4= Extension_8_1168(X2,Y2,-10)+160
RY4= Extension_8_1184(X2,Y2,-10)+128
Add D,1,0 To 3
If RX1=0
OX1=RX2 : OY1=RY2 : OX3=RX4 : OY3=RY4
Else
Extension_8_1016 RX1,RY1 To RX2,RY2,4,4
Extension_8_1016 RX2,RY2 To RX4,RY4,4,4
Extension_8_1016 RX3,RY3 To RX4,RY4,4,4
Extension_8_1016 RX1,RY1 To RX3,RY3,4,4
Extension_8_1016 RX1,RY1 To RX2,RY2,1,-1
Extension_8_1016 RX3,RY3 To RX4,RY4,2,-2
End If
RX1=RX2 : RY1=RY2 : RX3=RX4 : RY3=RY4
Next
Extension_8_1016 RX1,RY1 To OX1,OY1,1,-1
Extension_8_1016 RX3,RY3 To OX3,OY3,2,-2
Extension_8_1042 0,0,64,32,272,224
Extension_8_1042 0,1,64,32,272,224
Screen Swap
Wait Vbl
Loop